package fangzhiyi_day0321.homework.business;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/21 18:34
 * @description
 */
public class Emp {
    //工号
    private int id;
    //姓名
    private String name;
    //性别
    private String sex;
    //职位
    private String job;
    //年龄
    private int age;
    //月薪
    private double monthSalary;
    //部门
    private String sector;

    public Emp() {
    }

    public Emp(int id, String name, String sex, String job, int age, double monthSalary, String sector) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.job = job;
        this.age = age;
        this.monthSalary = monthSalary;
        this.sector = sector;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getMonthSalary() {
        return monthSalary;
    }

    public void setMonthSalary(double monthSalary) {
        this.monthSalary = monthSalary;
    }

    public String getSector() {
        return sector;
    }

    public void setSector(String sector) {
        this.sector = sector;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", job='" + job + '\'' +
                ", age=" + age +
                ", monthSalary=" + monthSalary +
                ", sector='" + sector + '\'' +
                '}';
    }
}
